package com.igeek.javase.interfaces.fly;

/**
 * @author chenmin
 * 2023/7/14 15:44
 * @description TODO
 */
public class Test {

    //多态参数
    public static void makeFly(CanFly canFly){
        canFly.fly();
    }

    public static void main(String[] args) {
        CanFly bird = new Bird();
        CanFly airplane = new Airplane();

        makeFly(bird);
        System.out.println("-------------");
        makeFly(airplane);
    }
}
